#include <stdio.h>
#include <stdlib.h>
typedef struct Birthday Birthday;
struct Birthday {
  int year;
  int month;
  int day;
};

typedef struct Employee Employee;
struct Employee {
  char *name;
  int age;
  Birthday birthday;
};

int main(int argc, char *argv[]) {
  /* 结构体嵌套
   */
  Employee e = {.name = "hera",
                .age = 18,
                .birthday = {.year = 1985, .month = 8, .day = 18}};
  printf("name = %s\nage = %d\nbirthday = %d-%d-%d\n", e.name, e.age,
         e.birthday.year, e.birthday.month, e.birthday.day);
  return EXIT_SUCCESS;
}
